package com.aier.bean.common;

/**
 * 全局状态码
 */
public enum GlobalCode {
    REQUEST_SUCCESS("00000","请求成功"),
    REQUEST_FAIL("00001","请求失败"),

    ACCOUNT_PASSWORD_ERROR("D0001","用户名或密码错误"),

    FBA_IS_EMPTY("F0001","FBA码为空"),
    FBA_IS_EMPTY_OR_FOREIGN_NOT("F0002","FBA码为空或外贸基础数据没有录入"),

    WAREHOUSE_CODE_IS_EMPTY("F0002","仓库代码不能为空"),
    DESTINATION_IS_EMPTY("F0003","仓库地址不能为空"),
    TAX_AND_EXCLUDE_IS_EMPTY("F0004","包税价和不含税价不能同时为空,也不能为负数"),
    SKU_IS_EMPTY("F0005","产品型号不能为空"),
    FORWARDER_CODE("F0006","货代代码不能为空"),
    TRANSPORT_CHANNEL_IS_EMPTY("F0007","运输渠道不能为空"),

    READ_FAIL("R0001","文件读取失败"),
    EXPORT_FAIL("E0001","文件导入失败"),

    TEMPLATE_NOT_EXIST("T0001","模板文件不存在"),
    TEMPLATE_FILL_FAIL("T0002","模板填充失败"),
    ;



    private String code;
    private String message;

    GlobalCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override public String toString() {
        return "TestCode{" + "code='" + code + '\'' + ", message='" + message + '\'' + '}';
    }
}
